package housing.task1.document;

import housing.task1.actor.Renter;
import housing.task1.generator.AutoCompleter.WorkScale;
import housing.task1.generator.AutoCompleter.WorkType;

import java.util.Calendar;
import java.util.GregorianCalendar;


/**
 * @author Marshall
 */
public class Request {
    /**
     * InnerRenter class Sender
     */
    private Renter sender;
    private WorkType work;
    private WorkScale scale;
    private GregorianCalendar date;


    public Request(final Renter sender, WorkType w,
                   WorkScale s, GregorianCalendar d) {
        this.sender = sender;
        this.work = w;
        this.scale = s;
        this.date = d;
    }//Request(...)


    @Override
    public String toString() {
        return "Sender: " + sender.get_firstName() +
               "\tDate: " + date.get(Calendar.YEAR) + " " + date.get(Calendar.MONTH) +
               " " + date.get(Calendar.DAY_OF_WEEK) +
               "\tWork: " + work.toString() + " " +
               "\tWork scale: " + scale.toString();
    }//String toString()


    //========= Getters ===============================================================

    /**
     * @return the sender
     */
    public Renter getSender() {
        return sender;
    }

    /**
     * @return the work
     */
    public WorkType getWork() {
        return work;
    }

    /**
     * @return the scale
     */
    public WorkScale getScale() {
        return scale;
    }

    /**
     * @return the date
     */
    public GregorianCalendar getDate() {
        return date;
    }

}//class Request

